package org.crspta.gohomenotes.domain;

import javax.persistence.ManyToOne;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Student {

    @ManyToOne
    private Person person;

    @ManyToOne
    private SchoolClass schoolClass;

    @ManyToOne
    private DismissalPlan dismissalPlan;

    private Boolean afterCare;
    
    public String toString() {
    	return person.getLastName() + ", " + person.getFirstName();
    }
}
